# CONNECTIONS = {
#     "default": {
#         "engine": "tortoise.backends.asyncpg",
#         "credentials": {
#             "host": "192.168.1.15",
#             "port": "5432",
#             "user": "bloguser",
#             "password": "blogpassword",
#             "database": "blogdb"
#         }
#     }
# }
CONNECTIONS = {
    "default": {
        "engine": "tortoise.backends.asyncpg",
        "credentials": {
            "host": "db",
            "port": "5432",
            "user": "bloguser",
            "password": "blogpassword",
            "database": "blogdb"
        }
    }
}

TORTOISE_ORM = {
    "connections": CONNECTIONS,
    "apps": {
        "blog": {
            "models": ["blog.models", "aerich.models"],
            "default_connection": "default"
        }
    },
    'use_tz': True,
    'timezone': 'Asia/Shanghai' #使用时区，在序列化时间时会进行时区转换
}
# YWRtaW46cGFzc3dvcmQ= 现在是最简单的base64加密方式，有待修改
ADMIN_USERNAME="admin"
ADMIN_PASSWORD="password"
SECRET_KEY = 'UWMA1zrpLbQJ0F'